<?php
   // 类和对象
   // 1、定义类
   class Person{
      public $name="threeFeng";
      public $age=12;
      public function sayMe(){
         echo "hello my name is ".$this->name.",i am ".$this->age." years old";
      }
   }
   
   // 2、实例化一个对象
   $p1 = new Person();

   $p1->sayMe();

?>